invert a dictionary python

28

invert dictionary python -

inv_map = {v: k for k, v in my_map.items()}

Comments

Submit
0 Comments